//引入vue核心库
import Vue from 'vue';
import router from './router'
import App from './App.vue';
import store from './store';
import TypeNav from './components/TypeNav';
import Pagination from './components/Pagination';
import './mock/mockServer';
import {Loading, MessageBox, Message,Notification} from 'element-ui';

//阻止生产提示
Vue.config.productionTip = false;

Vue.component('TypeNav', TypeNav)
Vue.component('Pagination', Pagination)

Vue.prototype.$loading = Loading.service;
Vue.prototype.$msgbox = MessageBox;
Vue.prototype.$alert = MessageBox.alert;
Vue.prototype.$confirm = MessageBox.confirm;
Vue.prototype.$prompt = MessageBox.prompt;
Vue.prototype.$notify = Notification;
Vue.prototype.$message = Message;
new Vue({
  el: '#app',
  beforeCreate() {
    //安装全局事件总线
    Vue.prototype.$bus = this;
  },
  render: h => h(App),
  router,
  store,


})